package com.barbeque.mall.service;

import com.barbeque.mall.bean.BasePageInfo;
import com.barbeque.mall.bean.param.CommonData;
import com.barbeque.mall.bean.system.MarketAdmin;
import com.barbeque.mall.bean.system.MarketRole;
import com.barbeque.mall.bean.system.vo.CreateAdminVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface SysAdminServer {

    CommonData getAdminList(BasePageInfo basePageInfo , String username);

    // CommonData getAdminListByName(BasePageInfo basePageInfo, String username);





    int createAdmin(MarketAdmin marketAdmin);

    // CreateAdminVO getAdminByUsername(String username);

    CreateAdminVO getAdminVOById(int id);

    int updateAdmin(MarketAdmin marketAdmin);

    int deleteAdmin(MarketAdmin marketAdmin);

    List<MarketAdmin> getAdminByUsername(String username);

}
